package bridge;

/**
 * @author ycc
 * @date 2024/4/2
 * 创建一个Shape和Color的组合类Abstraction，它将使用桥接模式将抽象部分与实现部分分离
 */
public abstract class Abstraction {
    protected Shape shape;
    protected Color color;

    public Abstraction(Shape shape, Color color) {
        this.shape = shape;
        this.color = color;
    }

    public abstract void draw();
}
